package logic

import (
	"context"
	user "short-video/common/proto"
	"short-video/service/server"
)

type ServerUser struct {
	user.UnimplementedUserServer
}

func (s ServerUser) VideoList(ctx context.Context, in *user.VideoListReq) (*user.VideoListResp, error) {
	list, err := server.VideoList(in)
	if err != nil {
		return nil, err
	}
	return list, nil
}
func (s ServerUser) UserCenter(ctx context.Context, in *user.UserCenterReq) (*user.UserCenterResp, error) {
	center, err := server.UserCenter(in)
	if err != nil {
		return nil, err
	}
	return center, nil
}
